package com.wx.wxpush.service.impl;

import com.wx.wxpush.entiy.Letter;
import com.wx.wxpush.mapper.LetterMapper;
import com.wx.wxpush.service.LetterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LetterServiceImpl implements LetterService {
    @Autowired
    private LetterMapper letterMapper;

    @Override
    public List<Letter> selectRoundBySql() {
        return letterMapper.selectRoundBySql();
    }

    @Override
    public Boolean creatLetter(String letterInfo) {
        return letterMapper.creatLetter(letterInfo);
    }

    @Override
    public void updateGetter(String id) {
        letterMapper.updateGetter(id);
    }

    @Override
    public Boolean likeLetter(int id) {
        return letterMapper.likeLetter(id);
    }
}
